#include "ANDGate.h"
#include "MainWindow.h"
ANDGate::ANDGate(int x,int y)
{
    gate_x=x;
    gate_y=y;
    curlen=0;

    clickState=0;
}
void ANDGate::DoSimulate()
{
    Output=Inputs[0];
    for(int i=1;i<maxlen;i++)
    {
        Output=Output&Inputs[i];
    }
}


